#include<bits/stdc++.h>
using namespace std;
#define int long long
int n,ans;
int r[100050];
int zhen1=1,zhen2=2;
signed main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    ios::sync_with_stdio(0);
    cin>>n;
    ans=n;
    for(int i=1;i<=n;i++)cin>>r[i];
    sort(r+1,r+n+1);
    while(zhen2<=n){
        if(r[zhen2]<=r[zhen1]){
            zhen2++;
        }else{
            zhen1++;
            ans--;
            zhen2++;
        }
    }
    cout<<ans;

return 0;
}
